package com.example.redis.config;

import jakarta.annotation.PostConstruct;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
@Data
@Slf4j
public   class   PropertyConfig {
    @Value("${server.host}")
    private String host;

    @Value("${server.port}")
    private int port;

    @Value("${wechat.appid}")
    private String appId;

    @Value("${wechat.secret}")
    private String secret;


    @PostConstruct
    public void init(){
        log.info("文档地址: http://{}:{}/doc.html", host, port);
    }
}
